<%@ Page Language="VB" MasterPageFile="~/Default.master" AutoEventWireup="false"
    CodeFile="EventEmail.aspx.vb" Inherits="Admin_EventEmail" Title="Untitled Page"
    ValidateRequest="false" %>



<%@ Register TagPrefix="Club" TagName="LoginBanner" Src="~/UserControls/LoginBanner.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="body">
        <Club:LoginBanner ID="LoginBanner1" runat="server" />
        <div id="columnleft">
            <a title="content_start" id="content_start"></a>
            <div class="leftblock">
                <h2>
                    Events Email</h2>
                <p>
                    Use this form to send an email to all users that have RSVP'd for the event.</p>
                <p>
                    &nbsp;</p>
                <p>
                    You can set the subject for the email, and add attachments.</p>
            </div>
        </div>
        <div id="columnright">
            <div class="rightblock">
                <table>
                    <tr>
                        <td class="formlabel">
                            Event Heading:
                        </td>
                        <td align="left" style="width: 384px">
                            <asp:Label ID="titleTextBox" runat="server" Width="100%"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="formlabel">
                            Subject:
                        </td>
                        <td align="left" style="width: 384px">
                            <asp:TextBox ID="txtSubject" runat="server" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" ToolbarSet="Default" SkinPath="skins/office2003/"
                    Value='<%# Bind("description") %>' BasePath="~/FCKeditor/" UseBROnCarriageReturn="true">
                </FCKeditorV2:FCKeditor>
                <br />
                <table>
                    <tr>
                        <td class="formlabel">
                            Attachments:
                        </td>
                        <td align="left" style="width: 384px">
                            <asp:TextBox ID="txtAttachments" runat="server" Height="56px" TextMode="MultiLine"
                                Visible="False" Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:FileUpload ID="AttachmentFile" runat="server" />
                            <asp:Button ID="fileUpload" runat="server" Text="Upload" /></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnSend" runat="server" Text="Send Email" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="clear2column">
        </div>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ClubSiteDB %>"
        SelectCommand="SELECT title FROM Events where id=@id">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="ID" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ClubSiteDB %>"
        SelectCommand="SELECT aspnet_Membership.UserId, Attendance.member FROM Attendance INNER JOIN aspnet_MemberShip ON Attendance.member = aspnet_MemberShip.UserId WHERE (Attendance.eventid = @id)">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="ID" />
        </SelectParameters>
    </asp:SqlDataSource>
    &nbsp;
</asp:Content>
